package com.naiterui.ehp.bs.emr.vo.openapi.his;

import com.naiterui.ehp.bs.emr.utils.his.param.resp.MedicalResp;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

/**
 * 就诊记录
 *
 * @author yiren
 * @since 2022/1/25
 */
@Data
@Builder
public class MedicalRecordVO {

	@ApiModelProperty(value = "门诊号")
	private String mzh;

	@ApiModelProperty(value = "就诊人姓名")
	private String inquirerName;

	@ApiModelProperty(value = "就诊时间")
	private String vistingTime;

	@ApiModelProperty(value = "诊断")
	private String diagnosis;

	@ApiModelProperty(value = "医生姓名")
	private String doctorName;

	@ApiModelProperty(value = "科室名称")
	private String departmentName;

	public static MedicalRecordVO of(MedicalResp resp) {
		return MedicalRecordVO.builder()
				.mzh(resp.getMzh())
				.inquirerName(resp.getInquirerName())
				.vistingTime(resp.getVistingTime())
				.diagnosis(resp.getDiagnosis())
				.doctorName(resp.getDoctorName())
				.departmentName(resp.getDepartmentName())
				.build();
	}
}
